package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author SUNLIANG
 * 设备登记信息表
 * @TableName t_device
 */
@TableName(value ="t_device")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TDevice implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "device_id",type = IdType.ASSIGN_ID)
    private String deviceId;

    /**
     * 拥有者id
     */
    @TableField(value = "owner_id")
    private String ownerId;

    /**
     * 设备类型(对应字典表dict_type = "device_type")
     */
    @TableField(value = "device_type")
    private Integer deviceType;

    /**
     * 品牌名称(对应字典表dict_type = "drone_brand")
     */
    @TableField(value = "brand_name")
    private Integer brandName;

    /**
     * 型号(对应字典表dict_type = "drone_model_type")
     */
    @TableField(value = "model_type")
    private Integer modelType;

    /**
     * 电子身份证
     */
    @TableField(value = "electronic_id_card")
    private String electronicIdCard;

    /**
     * 机身序列号
     */
    @TableField(value = "serial_number")
    private String serialNumber;

    /**
     * 飞控序列号
     */
    @TableField(value = "flight_control_sn")
    private String flightControlSn;

    /**
     * 设备照片
     */
    @TableField(value = "device_picture")
    private String devicePicture;

    /**
     * 机身序列号照片
     */
    @TableField(value = "serial_number_picture")
    private String serialNumberPicture;

    /**
     * 飞控序列号照片
     */
    @TableField(value = "flight_control_sn_picture")
    private String flightControlSnPicture;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}